/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Factory.DAO;

import Factory.Tables.Movie;
import java.sql.Connection;
import java.util.List;

/**
 *
 * @author Patrick
 */
public abstract class MovieDAO {
    
    public abstract void addMovie(Movie obj);
    public abstract void UpdateMovie(Movie obj);
    public abstract List<Movie> findMovieByNameAndCategory(String key,int cat,String orderBy);
    public abstract List<Movie> findAllMovieByCategory(int cat,String orderBy);
    public abstract Movie findMovieByID(int id);
    public abstract int getMovieID(Movie obj);
    public abstract List<Movie> getAllMovie();
    public abstract List<Movie> getNewMovie();
    public abstract List<Movie> getNewMoviesByCategory(String category);
    public abstract List<Movie> getAllUpcomingMovies();
    public abstract List<Movie> getAllMovieByRating();
    public abstract int changeRating(int movieID, int rate);
    public abstract void addViews(int movieID);
    public abstract List<Movie> getMostViewedSearches();
    public abstract void deactivateMovie(int movieID);
    public abstract void activateMovie(int movieID);
    public abstract Movie getHotMovie();
    public abstract Movie getNewestMovie();
    public abstract Movie getRandomMovie();
    
    
    
}
